<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.model.Student"%>
<%@ page import="com.control.StudentControl"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>学生个人信息显示</title>
	</head>
	<body>
		<%
			request.setCharacterEncoding("utf-8");
			int stu_id = (Integer) session.getAttribute("user_id");
			StudentControl scontrol = new StudentControl();
			Student stu = scontrol.getStudent(stu_id);
		%>
		<table width="98%" border="0" align="center">
			<tr>
				<td></td>
			</tr>
			<tr>
				<td></td>
			</tr>
			<tr>
				<td>
					<fieldset>
						<legend>
							我的个人信息
						</legend>
						<form action="update_stuInfo.jsp" name="form1" method="post">
						<table width="35%" border="0" align="center" cellspacing="15"
							cellpadding="0">
							<tr>
								<td>
									<table width="99%" border="1" align="center" cellpadding="0"
										cellspacing="0">
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>学号</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=stu.getStu_num()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>姓名</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=stu.getStu_name()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>性别</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=stu.getStu_sex()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>生日</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=stu.getStu_birth()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>电话号码</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=stu.getStu_tel()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>学院</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=stu.getStu_college()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>专业</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=stu.getStu_major()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>寝室楼</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=stu.getStu_building_name()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>寝室</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=stu.getStu_dorm_name()%></span>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<div align="center">
										<input type="submit" value="修改信息"
											style="background: url(../images/button.gif) no-repeat; border: 0px; height: 28px; width: 62px;" />
									</div>
								</td>
							</tr>
						</table>
						</form>
					</fieldset>
				</td>
			</tr>
		</table>
	</body>
</html>
